package cn.edu.sdjzu.dao;

import cn.edu.sdjzu.entity.User;
import cn.edu.sdjzu.exception.BaseException;

import java.sql.Connection;
import java.sql.SQLException;
public interface UserDao {
    void login(Connection connection, User user) throws SQLException;
    User find(Connection connection, Integer id) throws SQLException, BaseException ;

    int add(Connection connection, User user) throws SQLException;
}
